<%inherit file="base.html"/>
<h2>
    ${_('Edit profile')}
</h2>
<div id="mainPanel">
    <div class="section" id="info">
        <h3>
            ${_('Profile')}
            <span class="inlineNav">
                <a href="http://${hexlabel}.hexlabel.net/group/">^ ${_('Back')}</a>
            </span>
        </h3>
        <form id="groupForm" action="/group/edit" method="post">
            <dl class="generic">
                <dt><label for="${profile_fields['generic']['name']['values'][0]['id']}">${profile_fields['generic']['name']['meta']['label']}</label></dt>
                <dd>
                    <input type="text" class="text" name="${profile_fields['generic']['name']['values'][0]['id']}" id="${profile_fields['generic']['name']['values'][0]['id']}" value="${profile_fields['generic']['name']['values'][0]['value']}"/>
                </dd>
                <dt><label for="${profile_fields['generic']['about']['values'][0]['id']}">${profile_fields['generic']['about']['meta']['label']}</label></dt>
                <dd>
                    <textarea class="text" rows="6" cols="20" name="${profile_fields['generic']['about']['values'][0]['id']}" id="${profile_fields['generic']['about']['values'][0]['id']}">${profile_fields['generic']['about']['values'][0]['value']}</textarea>
                </dd>
            </dl>
            <dl>
                <dd class="buttons">
                    <input type="submit" class="submit default" value="${_('Save')}"/>
                </dd>
                <dd class="buttons cancel">
                    <a href="http://${hexlabel}.hexlabel.net/group/" class="button">${_('Cancel')}</a>
                </dd>
            </dl>
            <div class="clr"><br/></div>
        </form>
    </div>
</div>

<!-- defs -->
<%def name="title()">P2P Fusion - Peerscape | ${profile_fields['generic']['name']['values'][0]['value']} | ${_('Edit profile')}</%def>
<%def name="body_class()">
    % if is_member:
  	    group member
    % else:
  	    group
    % endif
</%def>
